package com.qiaoas.springbootmybatis.service.impl;

import com.qiaoas.springbootmybatis.bean.User;
import com.qiaoas.springbootmybatis.mapper.UserMapper;
import com.qiaoas.springbootmybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUser(String name) {
        return this.userMapper.queryUserByName(name);
    }

}
